package de.hhbk.feedbackmodul.sessionbeans;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import de.hhbk.feedbackmodul.daointerfaces.TanDaoIF;
import de.hhbk.feedbackmodul.entities.Tan;
import de.hhbk.feedbackmodul.remoteInterfaces.TanRemoteIF;

@Stateless
public class TanSessionBean implements TanRemoteIF {

	@EJB
	private TanDaoIF dao;
	
	@Override
	public List<Tan> getAllTans() throws Exception {
		return dao.getAllTans();
	}

	@Override
	public void createTan(Tan tan) throws Exception {
		dao.createTan(tan);

	}

	@Override
	public void updateTan(Tan tan) throws Exception {
		dao.updateTan(tan);

	}

	@Override
	public void deleteTan(Tan tan) throws Exception {
		dao.deleteTan(tan);

	}

}
